package com.metal.gear.certification.entity.dto;

import com.metal.gear.certification.entity.po.SysUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class UserResetPasswordDto {

    @Schema(name ="id")
    private String id;



    @Schema(name ="密码")
    private String password;


    public static SysUser translateTo(UserResetPasswordDto saveDto){
        SysUser sysUser = new SysUser();
        BeanUtils.copyProperties(saveDto,sysUser);
        return sysUser;
    }

}
